<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!--
/*

 Album Art Widget for Dashboard.
 http://www.liquidx.net/albumartwidget/

 Copyright (c) 2005, Alastair Tse <alastair@liquidx.net>
 All rights reserved.
 
 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are met:

 Redistributions of source code must retain the above copyright notice, this
 list of conditions and the following disclaimer.

 Redistributions in binary form must reproduce the above copyright notice, this
 list of conditions and the following disclaimer in the documentation and/or
 other materials provided with the distribution.

 Neither the Alastair Tse nor the names of its contributors may
 be used to endorse or promote products derived from this software without 
 specific prior written permission.
 
 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 
 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 
 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 POSSIBILITY OF SUCH DAMAGE.
 
*/
-->

<html>
<head>
<style type="text/css" title="AppleStyle">
        @import "AlbumArt.css";
</style>
<script type="text/javascript" src="AlbumArtConstants.js" charset="utf-8" />
<script type="text/javascript" src="AlbumArtUpdate.js" charset="utf-8" />
<script type="text/javascript" src="AlbumArtPrefs.js" charset="utf-8" />
<script type="text/javascript" src="AlbumArtExtras.js" charset="utf-8" />
<script type="text/javascript" src="AlbumArtYesAsia.js" charset="utf-8" />
<script type="text/javascript" src="AlbumArtAmazon.js" charset="utf-8" />
<script type="text/javascript" src="AlbumArtGoogle.js" charset="utf-8" />
<script type="text/javascript" src="AlbumArt.js" charset="utf-8" />
<script type="text/javascript" src="AlbumArtAnimation.js" charset="utf-8" />
<script type="text/javascript" src="AlbumArtFlip.js" charset="utf-8" />
</head>

<body onload="init();">
    <div id="front" onmouseover="mousemove(event); song_info_mouseover();" onmouseout="mouseexit(event); song_info_mouseout();">
        <img src="Default.png" class="background" id="front-background" />
        <div id="albumart-layer"><img src="Blank.png" id="albumart"></div>
        <div id="update-layer">
            <img src="update.png" width="176" height="31" alt="new version available!" title="new version available!" usemap="#updatemap" />
        </div>
        <a href="javascript:fetch_update();" id="update-get"></a>
        <a href="javascript:ignore_update();" id="update-ignore"></a>
        
        <div id="spinner-layer"><img id="spinner" src="spinner.gif" /></div>
        <div id="itms-link"><a href="javascript:goitms();" title="Find in iTunes Music Store"><img src="itms.png" alt="Goto iTunes Music Store" /></a></div>
        <div id="fetched-link"><a href="javascript:goto_fetched_from();" title="Fetched source"><img src="fetched.png" alt="This album art is fetched."></a></div>
        <div id="shade-layer"></div>
        <div id="overlay-layer" onclick="rotatefield();"><img src="Overlay.png" id="overlay"></div>
        
        <div id="text-layer">
            <div id="track-name" onclick="">Album Art Widget</div>
            <div id="track-artist">iTunes Not Playing</div>
        </div>
        
        <div id="track-rating">
            <span id="unrate" onclick="set_rating('0');"><img id="unrateimg" src="trans.gif"></span>
            <span id="rate1" onclick="set_rating('20');"><img id="rateimg1" src="metal-StarOff.png"></span>
            <span id="rate2" onclick="set_rating('40');"><img id="rateimg2" src="metal-StarOff.png"></span>
            <span id="rate3" onclick="set_rating('60');"><img id="rateimg3" src="metal-StarOff.png"></span>
            <span id="rate4" onclick="set_rating('80');"><img id="rateimg4" src="metal-StarOff.png"></span>
            <span id="rate5" onclick="set_rating('100');"><img id="rateimg5" src="metal-StarOff.png"></span>
            <span id="spacer"><img id="unrateimg" src="trans.gif"></span>
        </div>
        
        <div class="flipalbum" id="flipalbumrollie"></div>
        <div class="flipalbum" id="flipalbum" onclick="showAlbumBack(event);" onmouseover="enterAlbumFlip(event);" onmouseout="exitAlbumFlip(event);" title="Show Album Tracks"></div>
        
        <div class="flipprefs" id="flipprefsrollie"></div>
        <div class="flipprefs" id="flipprefs" onclick="showPrefs(event);" onmouseover="enterPrefsFlip(event);" onmouseout="exitPrefsFlip(event);" title="Preferences"></div>
        
        <div class="saveart" id="saveartrollie"></div>
        <div class="saveart" id="saveart" onclick="saveArt();" onmouseover="enterSaveArt(event);" onmouseout="exitSaveArt(event);" title="Add artwork to iTunes song"></div>
<div class="refresh" id="refreshrollie"></div>
        <div class="refresh" id="refresh" onclick="refreshArt();" onmouseover="enterRefresh(event);" onmouseout="exitRefresh(event);" title="Refresh Artwork"></div>
        
        <div class="saveart-choice" id="saveart-single" onclick="saveArtSong();" title="Save artwork to this song only"><img src="track.png" width="32" height="32" /></div>
        <div class="saveart-choice" id="saveart-album" onclick="saveArtAlbum();" title="Save artwork to all songs in the same album"><img src="pplaylist.png" width="32" height="32" /></div>
        <div class="saveart-choice" id="saveart-cancel" onclick="saveArtCancel();" title="Cancel"><img src="cancel.png" width="32" height="32" /></div>
        <div id="saveart-confirm">
            <div>More than <span id="saveart-confirm-num">20</span> songs may be updated. Do you want to continue?</div>
            <div id="saveart-confirm-reply">
                <span id="saveart-confirm-ok" onclick="saveArtConfirmed();">yes</span>
                <span id="saveart-confirm-cancel" onclick="saveArtCancel();">no</span>
            </div>
        </div>
    </div>

    <div id="prefs">
        <img src="BackApple.png" class="background" id="pref-background"  />
        <div id="config-layer">
            <div class="pref-group" id="pref-widget-color">
                Widget Color:
                <select id="select-widget-color" onchange="changeWidgetColor(this);">
                <option value="metal">Metal</option>
                <option value="blue">Blue</option>
                <option value="black" selected>Black</option>
                </select>
            </div>

            <div class="pref-group" id="pref-stars-color">
                <div class="label">Stars Color:</div>
                <div class="field">
                <a id="blue-star-link" href="javascript:changeStarsColor('blue');"><img src="blue-StarOn.png" /><img src="blue-StarOn.png" /><img src="blue-StarOn.png" /></a>
                <a id="grey-star-link" href="javascript:changeStarsColor('grey');"><img src="grey-StarOn.png" /><img src="grey-StarOn.png" /><img src="grey-StarOn.png" /></a>
                <a id="rainbow-star-link" href="javascript:changeStarsColor('rainbow');"><img src="rainbow-Star1.png" /><img src="rainbow-Star2.png" /><img src="rainbow-Star3.png" /></a>
                </div>
            </div>
            
            <div class="pref-group" id="pref-info-opacity">
                <div class="label">Track Info Opacity:</div>
                <div class="field">
                <select id="select-info-opacity" onchange="changeInfoOpacity(this);">
                <option value="0.0">0%</option>
                <option value="0.2">20%</option>
                <option value="0.4">40%</option>                
                <option value="0.6">60%</option>                                
                <option value="0.8">80%</option>                
                </select>
                Autohide: <input type="checkbox" id="select-info-hide" value="0" onchange="changeInfoHide(this);"/>
                </div>
            </div>
            
            <div class="pref-group" id="pref-fetch">
                <div class="label">Fetch Art Online:</div>
                <div class="field">
                <select id="select-fetch" onchange="changeFetchMethod(this);">
                <option value="none">disabled</option>
                <option value="amazon_us">amazon.com</option>
                <option value="amazon_uk">amazon.co.uk</option>
                <option value="amazon_jp">amazon.co.jp</option>
                <option value="amazon_de">amazon.de</option>
                <option value="amazon_fr">amazon.fr</option>
                <option value="amazon_ca">amazon.ca</option>
                <option value="google">google images</option>
                <option value="yesasia_b5">yesasia (big5)</option>
                <option value="yesasia_gb">yesasia (gb)</option>
                </select>
                <img src="itms.png" valign="middle" /><input type="checkbox" id="select-itms-link" value="0" onchange="changeITMSLink(this);" />
                </div>
            </div>
            <div class="pref-group" id="pref-updates">
                Check for Updates:
                <input type="checkbox" id="select-check-update" value="1" onchange="changeCheckUpdate(this);"/>
                (v<span id="current-version">unknown</span>)
            </div>
            <div class="liquidx-logo">
            <a href="javascript:shameless_self_promotion();"><img src="liquidx.net.png" /></a>
            </div>
            <div class="done-button" onclick="hidePrefs();">
            <input type="button" value="Done" name="Done" />
            </div>
        </div>
        
        
    </div>
    
    <div id="back" onmousemove="mousemove(event);" onmouseout="mouseexit(event);">
        <img src="Back.png" class="background" id="back-background"  />
        <div id="album-playlist">
        <ol>
            <li>Hello</li>
            <li>Song Two</li>
            <li>Final Song</li>
        </ol>
        </div>
        <div class="flipalbumback" id="flipalbumrollieback"></div>
        <div class="flipalbumback" id="flipalbumback" onclick="hideAlbumBack(event);" onmouseover="enterAlbumBackFlip(event);" onmouseout="exitAlbumBackFlip(event);"></div>
    </div>
    
</body>
</html>